package com.code.feign;

import com.code.entity.Area;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;


/**
 * name 服务名称
 * path 服务的路径 组
 */
//@FeignClient(name = "mall-area-service" ,path = "/mall-area-service",url = "localhost:9001")
@Component
@FeignClient(name = "mall-area-service" ,path = "/mall-area-service",url = "localhost:9001")
public interface AreaFeign {

    @GetMapping(value = "/area/queryAreaLayUiPage")
    public String queryAreaLayUiPage(@SpringQueryMap Area area);

    @GetMapping("/area/list")
    String list();
}
